package com.yulinlin.admin.modules.sys.domain;

import com.yulinlin.admin.core.domain.SuperEntity;

import com.yulinlin.jdbc.model.anno.JoinField;
import com.yulinlin.jdbc.model.anno.JoinTable;
import com.yulinlin.jdbc.model.anno.JoinWhere;
import com.yulinlin.jdbc.serialize.ListString;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.Date;



@Data
@ApiModel("系统角色")
@JoinTable("sys_role")
public class SysRoleEntity extends SuperEntity<SysRoleEntity>  {









        @NotEmpty(message = "必填")
        @ApiModelProperty("角色名称")
        @JoinWhere
        @JoinField
        private String roleName;





        @NotEmpty(message = "必填")
        @ApiModelProperty("排序数值")
        @JoinWhere
        @JoinField
        private Integer sortValue;





        @NotEmpty(message = "必填")
        @ApiModelProperty("菜单集合")
        @JoinWhere
        @JoinField
        private String sysMenuIds;





        @NotEmpty(message = "必填")
        @ApiModelProperty("菜单数量")
        @JoinWhere
        @JoinField
        private Integer menuSize;











        @NotEmpty(message = "必填")
        @ApiModelProperty("修改时间")
        @JoinWhere
        @JoinField
        private Date uptTime;





        @NotEmpty(message = "必填")
        @ApiModelProperty("")
        @JoinWhere
        @JoinField
        private String code;






}
